package com.cn.zy.zheda.demo.service.impl;

import com.cn.zy.zheda.demo.dao.CustomerDao;
import com.cn.zy.zheda.demo.entity.CustomerEntity;
import com.cn.zy.zheda.demo.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangyi
 * @date 2018/12/19 17:36
 */
@Service
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    private CustomerDao customerDao;


    @Override
    public List<CustomerEntity> getAllCustomer() {
        List<CustomerEntity> allCustomer = customerDao.getAllCustomer();
        return allCustomer;
    }
}
